<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>模板语法</title>
  <script src='vue/vue.js'></script>
</head>

<body>
  <div id="app">
    <div v-text="name"></div>
    <div v-html='name'></div>  
    <!-- 解析后显示 -->
    <div>{{name}}</div>
</div>
  <script>
    var vm = new Vue({
      el:"#app",
      data:{
        name:'<h1>vue<h1>'
      } 
    })
  </script>
</body>

</html>